﻿using UnityEngine;
using System.Collections;

public class Player_Controls : MonoBehaviour {
	//Variables
	public float walkSpeed = 3.5f;

	void Update () {
		if (Input.GetKey (KeyCode.W)) {
			transform.Translate (Vector2.up * walkSpeed * Time.deltaTime);
		}
		if (Input.GetKey (KeyCode.S)) {
			transform.Translate (-Vector2.up * walkSpeed * Time.deltaTime);
		}
		if (Input.GetKey (KeyCode.A)) {
			transform.Translate(-Vector2.right * walkSpeed * Time.deltaTime);
		}
		if (Input.GetKey (KeyCode.D)) {
			transform.Translate (Vector2.right * walkSpeed * Time.deltaTime);
		}
	}
}
